<link rel="stylesheet" type="text/css" href="__PUBLIC__/javascripts/admin/jQuerycxColor/css/jquery.cxcolor.css" />
<script type="text/javascript" src="__PUBLIC__/javascripts/admin/jQuerycxColor/js/jquery.cxcolor.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
       $("#color_a").cxColor();
    });
</script>
<div class="contentArea">
  <div class="Item hr">
    <div class="current">添加投票选项</div>
  </div>
  <form enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1" id="form_inputs">
      <tr>
        <th width="100">名称：</th>
        <td>
          <input type="text" name="vote[name]" class="input" size="30" />
        </td>
      </tr>
      <tr>
        <th width="100">颜色值：</th>
        <td>
          <input id="color_a" name="vote[color]" type="text" class="input_cxcolor" readonly>
        </td>
      </tr>
      <tr>
        <th width="100">投票数：</th>
        <td>
          <input type="number" name="vote[count]" class="input" size="30" value="0" />
        </td>
      </tr>
      <tr>
        <th width="100">排序：</th>
        <td>
          <input type="number" name="vote[sort]" class="input" size="10" maxlength="10" value="0" />
        </td>
      </tr>
    </table>
  </form>
  <div class="commonBtnArea">
    <button class="btn submit">提交</button>
  </div>
</div>

<script type="text/javascript">
  $(".submit").click(function () {
    commonAjaxSubmit("{:U('Vote/create')}");
    return false;
  });
</script>